" java

" Ideal column width is 100 {{{1
autocmd FileType java setlocal textwidth=100

" use 4 spaces for tabs {{{1
" 4 spaces for 1 tab
autocmd FileType java setlocal tabstop=4
" one deletion removes 4 spaces
autocmd FileType java setlocal softtabstop=4
" set shiftwidth to follow tabstop
autocmd FileType java setlocal shiftwidth=0

" Auto clear whitespace {{{1
autocmd BufWritePre *.java ClearWhitespace
